<?php
  require '../../include/library.inc.php';
  require '../../include/admin_login.inc.php';
  
  if($_POST['image_class'] && $_POST['image_id']){
	  $sql = "UPDATE project_gallery
							SET
								image_class = '".escape($_POST['image_class'])."'
							WHERE
								id = '".intval($_POST['image_id'])."'
							  ";
		query($sql);
  			
		echo 'Настройките са запазени!';
	}
  
  if($_POST['cover_class'] && $_POST['project_id']){
	  $sql = "UPDATE projects
				SET
				cover_class = '".escape($_POST['cover_class'])."'
				WHERE
				project_id = '".intval($_POST['project_id'])."'
							  ";
		query($sql);
  			
		echo 'Настройките са запазени!';
	}
?>